package com.googlecode.wannabet.domain;

import java.util.Date;

import com.google.appengine.api.datastore.Entity;

public class Match {
	
	private Long matchID;
	
	private Long tournamentID;
	
	private Date eventDate;
	
	private Long venueID;
	
	private Long team1;
	
	private Long team2;

	public static Entity getMatchEntity(Long matchID, Long tournamentID, Date eventDate, Long venueID, Long team1, Long team2) {
		Entity entity = new Entity(Match.class.getSimpleName());
		
		entity.setProperty("matchID", matchID);
		entity.setProperty("tournamentID", tournamentID);
		entity.setProperty("eventDate", eventDate);
		entity.setProperty("venueID", venueID);
		entity.setProperty("team1", team1);
		entity.setProperty("team2", team2);
		
		return entity;
	}

	/**
	 * @return the matchID
	 */
	public Long getMatchID() {
		return matchID;
	}

	/**
	 * @param matchID the matchID to set
	 */
	public void setMatchID(Long matchID) {
		this.matchID = matchID;
	}

	/**
	 * @return the eventDate
	 */
	public Date getEventDate() {
		return eventDate;
	}

	/**
	 * @param eventDate the eventDate to set
	 */
	public void setEventDate(Date eventDate) {
		this.eventDate = eventDate;
	}

	/**
	 * @return the venueID
	 */
	public Long getVenueID() {
		return venueID;
	}

	/**
	 * @param venueID the venueID to set
	 */
	public void setVenueID(Long venueID) {
		this.venueID = venueID;
	}

	/**
	 * @return the team1
	 */
	public Long getTeam1() {
		return team1;
	}

	/**
	 * @param team1 the team1 to set
	 */
	public void setTeam1(Long team1) {
		this.team1 = team1;
	}

	/**
	 * @return the team2
	 */
	public Long getTeam2() {
		return team2;
	}

	/**
	 * @param team2 the team2 to set
	 */
	public void setTeam2(Long team2) {
		this.team2 = team2;
	}

	/**
	 * @return the tournamentID
	 */
	public Long getTournamentID() {
		return tournamentID;
	}

	/**
	 * @param tournamentID the tournamentID to set
	 */
	public void setTournamentID(Long tournamentID) {
		this.tournamentID = tournamentID;
	}

}
